from django.contrib import admin

# Register your models here.
from .models import Article,img


class ArticleAdmin(admin.ModelAdmin):
    list_display = ('title', 'pub_date', 'update_time')
class ImgAdmin(admin.ModelAdmin):
    list_display = ('title', 'pub_date', 'update_time')
# class PersonAdmin(admin.ModelAdmin):
#     list_display = ('first_name')
admin.site.register(Article, ArticleAdmin)
admin.site.register(img, ImgAdmin)